    <!-- Main Content Section -->
    <div style="max-width: 1200px; margin: 0 auto;" 
         ng-controller="BlogAddCtrl" ng-init="init()">

      <hr>


       <div class="row-fluid">


          <div class="masthead">
            <h1 class="titleSpecial">            
              Write a new thread 
            </h1>

            in <select ng-model="selectedTag" ng-options="c.label  for c in tags">

            </select>

            <a href="">Add new category [todo]</a>
              
          </div>

          <input type="text" placeholder="Add the title"
              class="input-xxlarge" type="text">

          <!-- Jumbotron -->
          <div class="jumbotron"    >

           <textarea ui-tinymce ng-model="tinymce" rows="20"
           theme="simple"></textarea>

          <!-- <p>{{tinymce}}</p> -->

          </div>

<!--        
<textarea ui-codemirror  ui-codemirror="editorOptions" ng-model="threadInfo.thread.code"></textarea> -->


        <!-- ADD CODE -->
        <div class="row-fluid" ng-controller="addCommentCtrl">

        <hr>
          <span  ng-click="isCodePanelHidden = !isCodePanelHidden">
            <img src="images/icon/black_with_circle/Align-center.png"
             class="cmsIcon"
             tooltip-placement="right" 
             tooltip="Expand / Collapse panel"
           >

             <span class="titleSpecial" style="cursor:pointer">  Add your < code > </span>
          </span>
    
          <!-- CODE MIRROR -->
          <div  collapse="isCodePanelHidden">
            <textarea
              ui-codemirror="{
                lineWrapping : true,
                lineNumbers: true,
                onChange: reParseInput,
                readOnly: false,
                mode: 'javascript',
                theme: 'ambiance'
                }"            
              ng-model="threadInfo.thread.code"
            ></textarea>

            <button ng-click="clearCode()"
            class="btn">Clear Code</button>

            <button 
            class="btn">FullScreen View (todo)</button>

          

          </div>


<!-- 
            <div ace="{{language.value}}" ng-model="bitchin"  collapse="isCodePanelHidden">
            <textarea> {{ threadInfo.thread.code }}</textarea>
            </div> -->
        </div>

      <hr>



      <!-- BOX NOTIFY TO -->
      <div class="row-fluid" ng-controller="NotifyToCtrl">
       

        <span class="span3">
           <img src="images/icon/black_with_circle/Check boxes.png" class="cmsIcon"
           tooltip-placement="right"
           tooltip="Select the user that will receive a notification by mail">
          <span class="titleSpecial">  Notify to:</span>
         </span>

        <span class="span9">
          <span ng-repeat="u in usersToNotify" >

              <input type="checkbox" 
                     ng-checked="{{u.notified}}"
                     id="checkbox-1-{{u.id}}" 
                     class="regular-checkbox" />
              <label for="checkbox-1-{{u.id}}">{{u.displayedName}} </label>

           <!--  <label ng-show="u.owner==false">
              <input type="checkbox" name="checkbox" value="{{u.id}}" 
              class="regular-checkbox" 
              />{{u.displayedName}} - {{u.owner}}
            </label> -->
          </span>
        </span>
      </div>




      <hr>

      <!-- ATTACH FILES -->
      <div ng-include src="'partials/components/attachFiles.html'"></div>


       <hr>


     
      <div class="row-fluid text-right">
        <a class="btn btn-large btn-success" ng-click="save()">Send and Notify all</a>
      </div>


      <hr> 

      <div id="footer">
        <div>
          <p class="muted credit" style="">Angular PM - <a href="http://www.fabiobiondi.com">Fabio Biondi</a> and <a href="http://www.wasabit.it/">Thomas Dolso</a>.</p>
        </div>
      </div>

    </div> <!-- /container -->



